package vip.xiaonuo.biz.modular.fzrole.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 分销人角色表编辑参数
 *
 * @author xiao
 *
 **/
@Getter
@Setter
public class BizFzRoleEditParam {

    /** ID */
    @ApiModelProperty(value = "ID", required = true, position = 1)
    @NotBlank(message = "id不能为空")
    private String id;

    /** 角色名称 */
    @ApiModelProperty(value = "角色名称", required = true, position = 2)
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    /** 分账角色 */
    @ApiModelProperty(value = "分账角色：字典：FXR_ROLE_NAME", required = true, position = 3)
    @NotBlank(message = "分账角色不能为空")
    private String roleValue;

    /** 上级id */
    @ApiModelProperty(value = "上级id", position = 4)
    private String parentId = "0";

    /** 分账类型 */
    @ApiModelProperty(value = "分账类型：字典：FXR_FY_TYPE", required = true, position = 5)
    @NotBlank(message = "分账类型不能为空")
    private String fzType;

    /** 分账数值 */
    @ApiModelProperty(value = "分账数值", required = true, position = 6)
    @NotNull(message = "分账数值不能为空")
    private BigDecimal fzValue;
} 